import request from '../index'

// 登录接口
export function login(params) {
  return request('login', {
    method: 'POST',
    data: params
  })
}
export function refreshToken(params) {
  return request('refresh-token', {
    method: 'POST',
    data: params
  })
}
export function search(params) {
  return request('customers', {
    method: 'GET',
    data: params
  })
}
export function upload(params) {
  return request('receipts/upload', {
    method: 'POST',
    data: params,
  })
}

